package cz.proks.easyhelpdesk.gwt.ui.widget;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.ui.PushButton;

import cz.proks.easyhelpdesk.gwt.ui.resource.ButtonResources;

public abstract class AButton extends PushButton {    
    private ButtonResources resources;
    
    public AButton() {
        setResources((ButtonResources) GWT.create(ButtonResources.class));
    }
    
    public ButtonResources getResources() {
        return resources;
    }
    
    public void setResources(ButtonResources resources) {
        this.resources = resources;        
        this.resources.style().ensureInjected();
    }        
}
